package com.wpx.log.core.service;

import java.io.IOException;
import java.io.InputStream;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.wpx.log.core.module.DefaultLog;

public class DefaultLogService implements IWpxLogService<DefaultLog> {
	
	private static final Logger logger = LoggerFactory.getLogger(DefaultLogService.class);
	
	@Override
	public boolean saveLog(DefaultLog log) {
		logger.info(log.toString());
		return true;
	}

	@Override
	public String saveFile(InputStream in, String fileName) throws IOException {
		logger.info("保存文件 " + fileName);
		return fileName;
	}

}
